package com.zxm.edu.service.impl;

import com.alipay.api.AlipayApiException;
import com.zxm.edu.entity.AlipayBean;
import com.zxm.edu.service.IPayService;
import com.zxm.edu.util.AliPayUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName PayServiceImpl
 * @Description TODO
 * @Author silence.Z
 * @Date 2023/1/4 9:29
 * @Version 1.0
 */
@Service
public class PayServiceImpl implements IPayService {
    @Autowired
    private AliPayUtil aliPayUtil;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return aliPayUtil.pay(alipayBean);
    }
}
